package ex45;

import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) {
		
		Scanner in = new Scanner(System.in);
		double aI, bI, cI, a, b, c, a2, b2, c2;
		String input, inputParts[];
		
		input = in.nextLine();
		inputParts = input.split(" ", 3);
		
		aI = Double.parseDouble(inputParts[0]);
		bI = Double.parseDouble(inputParts[1]);
		cI = Double.parseDouble(inputParts[2]);
		
		a = Math.max(aI, bI);
		a = Math.max(a, cI);
		
		if (a == aI) {
			b = Math.max(bI, cI);
			c = Math.min(bI, cI);
		} else if (a == bI) {
			b = Math.max(aI, cI);
			c = Math.min(aI, cI);
		} else {
			b = Math.max(aI, bI);
			c = Math.min(aI, bI);
		}
		
		a2 = a * a;
		b2 = b * b;
		c2 = c * c;
		
		if (a >= b + c) {
			System.out.println("NAO FORMA TRIANGULO");
		} else {
			if (a2 == b2 + c2) {
				System.out.println("TRIANGULO RETANGULO");
			}
			if (a2 > b2 + c2) {
				System.out.println("TRIANGULO OBTUSANGULO");
			}
			if (a2 < b2 + c2) {
				System.out.println("TRIANGULO ACUTANGULO");
			}
			if (a == b && b == c) {
				System.out.println("TRIANGULO EQUILATERO");
			}
			if ((a == b && b != c) || (b == c && c != a) || (c == a && a != b)) {
				System.out.println("TRIANGULO ISOSCELES");
			}
		}
		in.close();
	}
}